package spider.core;

import java.util.List;

import nlp.model.Message;
import spider.common.CommonDS;
import spider.common.SourceType;
import spider.data.DataMaker;
import spider.data.DataMakerImpl;

public class Crawler {

	private long seed;
	
	public Crawler(long seed){
		this.seed=seed;
	}
	
	public void crawl(){
		long currentCrawlId=CommonDS.getCrawlId();
		while(currentCrawlId!=0){
			
		}
			
	}
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		DataMaker maker=new DataMakerImpl();
//		List<Message> msgList=maker.getMessageByUID(1840778837, SourceType.SINA_WEIBO);
//		for(Message s:msgList){
//			System.out.println(s.getText());
//		}
		
		List<Long> fids=maker.getFriendsIdByUID(1840778837, SourceType.SINA_WEIBO);
		int i =0;
		for(long l : fids){
			System.out.println(l +"  " + i);
			i++;
		}
	}
}
